package com.oracle.oa.biz.impl;

import java.util.List;

import com.oracle.oa.biz.DepartInfoBiz;
import com.oracle.oa.dao.DepartInfoDao;
import com.oracle.oa.entity.Departinfo;

public class DepartInfoBizImpl extends BaseBizImpl implements DepartInfoBiz {

	DepartInfoDao ddao;

	public DepartInfoDao getDdao() {
		return ddao;
	}

	public void setDdao(DepartInfoDao ddao) {
		this.ddao = ddao;
	}

	public Departinfo findByDepartInfoName(String Departname) {
        
	    List<Departinfo> dlist=ddao.getByProperty(Departinfo.class,"departname", Departname);
		
	    Departinfo departinfo=dlist.get(0);
		
		return departinfo;
	
	}
	
}
